//
//  RDSettingView.h
//  eCourseApp
//
//  Created by 飞猪 on 2018/9/17.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol RDSettingViewDelegate;


@interface RDButton : UIButton

@end

typedef NS_ENUM(NSUInteger, RDSettingClickType) {
  RDSettingClickTypeFont,
  RDSettingClickTypeColor,
};

@interface RDSettingView : UIView

@property (nonatomic, weak  ) id<RDSettingViewDelegate> delegate;

@property (weak, nonatomic) IBOutlet UIButton *system;

@property (weak, nonatomic) IBOutlet UIButton *kaiti;

@property (weak, nonatomic) IBOutlet UIButton *simsun;

@property (weak, nonatomic) IBOutlet UISlider *slider;


@property (nonatomic, strong) NSMutableDictionary *buttons;
@property (nonatomic, weak  ) UIButton *sender;   // 字体

@property (nonatomic, strong) NSArray *colors;
@property (nonatomic, strong) NSArray *hexColors;
@property (nonatomic, weak  ) UIButton *bgColor;  // 背景颜色

@end


@protocol RDSettingViewDelegate <NSObject>

- (void)settingView:(RDSettingView *)bottomSettingView clickedIndex:(RDSettingClickType)clickType value:(id)value;

@end
